const requireAPI = require.context('.',true,/.js$/)

let modules = {};
//获取所有请求方法加入到modules对象里面
requireAPI.keys().forEach((key,i)=>{
	if(key === "./index.js")return
	
	Object.assign(modules,requireAPI(key))
})


export default modules